home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form SessionForm
- Caption = "Mail X Session Form"
- ClientHeight = 3075
- ClientLeft = 1530
- ClientTop = 1845
- ClientWidth = 6390
- Height = 3450
- Left = 1485
- LinkTopic = "Form2"
- ScaleHeight = 3075
- ScaleWidth = 6390
- Top = 1515
- Width = 6480
- Begin MForm MForm1
- Height = 255
- Left = 120
- MXFormName = "FormTag1"
- Top = 120
- Width = 2295
- End
- Begin MReci MReci1
- AddRecipientClass= 1 '1- TO:
- AddressCaption = "Mail X Address Caption "
- AddressEditNum = 3
- BindString = "MMsg1"
- DetailModifiable= -1 'True
- DisplayErrors = 0 'False
- FetchType = 1 '1- Msg. Recipient
- Height = 420
- Left = 5400
- ResolveDialog = -1 'True
- Top = 1320
- Width = 420
- End
- Begin MMsg MMsg1
- BindString = "MSess1"
- BodyAsFile = 0 'False
- DisplayErrors = 0 'False
- DisplaySendDialog= 0 'False
- EnvelopeOnly = 0 'False
- FetchMsgType = ""
- Height = 420
- Left = 3720
- MarkAsRead = 0 'False
- SortMsg = 0 'False
- SuppressAttach = 0 'False
- TimeFormat = "%m/%d/%y"
- Top = 1320
- UnreadOnly = 0 'False
- Width = 420
- WorkingMsg = 0 '0- Inbox Message
- End
- Begin MSess MSess1
- DefaultPath = ""
- DisplayErrors = -1 'True
- DownLoadMsg = -1 'True
- Height = 420
- Left = 5520
- LogonUI = -1 'True
- Mail_Type = 0 '0- NONE
- MapiCustomLibName= ""
- NewSession = -1 'True
- Password = ""
- Top = 120
- User = ""
- Width = 420
- End
- Begin CommandButton Command3
- Caption = "Delete Recipient"
- Height = 375
- Left = 4320
- TabIndex = 10
- Top = 2520
- Width = 1815
- End
- Begin CommandButton Command2
- Caption = "Fetch Next"
- Height = 375
- Left = 2160
- TabIndex = 9
- Top = 2520
- Width = 2055
- End
- Begin CommandButton Command1
- Caption = "Fetch First"
- Height = 375
- Left = 240
- TabIndex = 8
- Top = 2520
- Width = 1695
- End
- Begin CommandButton BtnAddressDialog
- Caption = "Address Dialog"
- Height = 375
- Left = 4320
- TabIndex = 4
- Top = 1920
- Width = 1815
- End
- Begin CommandButton BtnAdd
- Caption = "Add Resolved Names"
- Height = 375
- Left = 2160
- TabIndex = 3
- Top = 1920
- Width = 2055
- End
- Begin CommandButton BtnResolve
- Caption = "ResolveNames"
- Height = 375
- Left = 240
- TabIndex = 2
- Top = 1920
- Width = 1695
- End
- Begin TextBox szResolveText
- Height = 330
- Left = 2220
- TabIndex = 1
- Top = 660
- Width = 3930
- End
- Begin Label nCount
- Height = 315
- Left = 1995
- TabIndex = 7
- Top = 1260
- Width = 795
- End
- Begin Label Label3
- Caption = "Recipient Count:"
- Height = 300
- Left = 180
- TabIndex = 6
- Top = 1260
- Width = 1665
- End
- Begin Label Label2
- Caption = "(Introduce a List: Name1;Name2; etc)"
- Height = 285
- Left = 2205
- TabIndex = 5
- Top = 285
- Width = 3420
- End
- Begin Label Label1
- Caption = "Address To Resolve:"
- Height = 285
- Left = 150
- TabIndex = 0
- Top = 690
- Width = 1995
- End
- Sub BtnAdd_Click ()
- MReci1.Action = ACTION_ADDRECIPIENT
- UpdateCount
- UpdateText
- End Sub
- Sub BtnAddressDialog_Click ()
- MReci1.Action = ACTION_ADDRESS
- UpdateCount
- UpdateText
- End Sub
- Sub BtnResolve_Click ()
- MReci1.ResolveName = szResolveText
- szResolveText = MReci1.ResolveName
- End Sub
- Sub Command1_Click ()
- If MReci1.RecipientCount > 0 Then
- MReci1.RecipientNum = 1
- UpdateText
- Else
- MsgBox "Mail X Recipient Control is Empty"
- End If
- End Sub
- Sub Command2_Click ()
- NextR = MReci1.RecipientNum + 1
- If NextR <= MReci1.RecipientCount Then
- MReci1.RecipientNum = NextR
- UpdateText
- Else
- MsgBox "Last Recipient Reached"
- End If
- End Sub
- Sub Command3_Click ()
- MReci1.Action = ACTION_DEL_RECIPIENT
- UpdateCount
- UpdateText
- End Sub
- Sub Form_Load ()
- Load SystemX
- SystemX.MSMAIL = True
- SystemX.Show 1
- MSess1.Logon = True
- If MSess1.Logon = False Then End
- UpdateCount
- End Sub
- Sub UpdateCount ()
- nCount = MReci1.RecipientCount
- End Sub
- Sub UpdateText ()
- szResolveText = MReci1.RecipientName
- End Sub
-